package com.min.oss.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "hs.oss")
@Data
public class OssProperties {

    /**
     * 对象存储的根路径
     **/
    private String path;

    /**
     * 网络访问的url前缀
     **/
    private String url;

    /**
     * minio 配置
     **/
    @Value("${hs.oss.minio.endpoint}")
    private String endpoint;
    @Value("${hs.oss.minio.accesskey}")
    private String accesskey;
    @Value("${hs.oss.minio.secretKey}")
    private String secretKey;
    @Value("${hs.oss.minio.bucket}")
    private String bucket;
}
